#include "stdafx.h"
#include "LangSettings.h"

#if wxCHECK_VERSION(2,9,4)
#include <wx/stc/stc.h>
#define wxScintilla wxStyledTextCtrl
#define wxScintillaEvent wxStyledTextEvent
#else
#include <wx/wxScintilla/wxscintilla.h>
#endif

LUA_DEBUG_BEGIN

/// keywordlist
wxChar *s_Wordlist1 =
wxT("\
    and break do else elseif \
    end false for function if \
    in local nil not or \
    repeat return then true until while");
wxChar *s_Wordlist2 = wxT("require module"); //coroutine debug file io math os string");
wxChar *s_Wordlist3 = wxT("");

/// Styles info.
const StyleInfo s_stylePrefs [] = {
    {
		wxSTC_LUA_DEFAULT,
		wxT("BLACK"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_COMMENT,
		wxT("FOREST GREEN"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_COMMENTLINE,
		wxT("FOREST GREEN"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_COMMENTDOC,
		wxT("FOREST GREEN"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_NUMBER,
		wxT("BLACK"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_WORD,
		wxT("BLUE"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, s_Wordlist1
	}, {
		wxSTC_LUA_STRING,
		wxT("BROWN"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_CHARACTER,
		wxT("BROWN"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_LITERALSTRING,
		wxT("BROWN"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_PREPROCESSOR,
		wxT("GRAY"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_OPERATOR,
		wxT("VIOLET"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_IDENTIFIER,
		wxT("BLACK"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, true, NULL
	}, {
		wxSTC_LUA_STRINGEOL,
		wxT("BROWN"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}, {
		wxSTC_LUA_WORD2,
		wxT("BLACK"), wxT("WHITE"),
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, s_Wordlist2
	}, {
		STYLE_END,
		NULL, NULL,
		FONTSTYLE_REGULAR, wxSTC_CASE_MIXED, false, NULL
	}
};

LUA_DEBUG_END
